home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / Timer$DoPostEvent.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.2 KB  |  30 lines

  1. package javax.swing;
  2.  
  3. import java.awt.event.ActionEvent;
  4. import java.io.Serializable;
  5.  
  6. class Timer$DoPostEvent implements Runnable, Serializable {
  7.    // $FF: synthetic field
  8.    private final Timer this$0;
  9.  
  10.    Timer$DoPostEvent(Timer var1) {
  11.       this.this$0 = var1;
  12.    }
  13.  
  14.    Timer getTimer() {
  15.       return this.this$0;
  16.    }
  17.  
  18.    public void run() {
  19.       if (Timer.access$0()) {
  20.          System.out.println("Timer ringing: " + this.this$0);
  21.       }
  22.  
  23.       if (this.this$0.eventQueued) {
  24.          this.this$0.fireActionPerformed(new ActionEvent(this.this$0, 0, (String)null));
  25.          this.this$0.cancelEvent();
  26.       }
  27.  
  28.    }
  29. }
  30.